import { State } from './index';
import { Reducer } from '@/dva/types';

export const setLoading: Reducer = (state: State, { payload }) => {
  return { ...state, loading: payload };
}

export const setUserInfo: Reducer = (state: State, { payload }) => {
  return { ...state, userInfo: payload };
}
